home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 4 / MacMania 4.toast / / Internet software / HTML Voc 1.3 / HTML Vocabulary 1.3 / HTML Vocabulary 1.3.rsrc / TEXT_1300_Forms.txt < prev    next >
Text File  |  1996-05-29  |  3KB  |  89 lines

  1.  
  2.  Forms    
  3.  
  4.  
  5.  
  6. <FORM ACTION=url METHOD=method [ENCTYPE=encrypt] [SCRIPT=url]
  7.  [TARGET=text]>
  8.  This is the start tag of a new form. ACTION is the URL of a
  9.  cgi script, an email or a page to which it will be sended.
  10.  METHOD is either "post" or "get", depending how to send the
  11.  information. ENCTYPE is the encryption type, for example MIME.
  12.  SCRIPT is the client side URL script. TARGET is a Netscape
  13.  extension which opens the result in a (new) window or frame
  14.  named "text". If text is "_blank", the window will be unamed.
  15.  If it is "_self", the current window or frame will be used.
  16.  Must end with </FORM>. To convert the result of a mailto: form
  17.  into readable text, I've written another freeware program named
  18.  Mailto Converter, available from my homepage or Info-Mac and
  19.  other shareware libraries on the net. Use it if you like.
  20.  
  21.  NOTE:
  22.  If ACTION is not defined, Netscape will display an email window
  23.  with your own subject. I'm not sure if this is an official
  24.  feature, or if it is supported in all versions of the program.
  25.  
  26.  <INPUT>
  27.  INPUT is a form object, for example a field. The following
  28.  parameters are allowed:
  29.  
  30.  NAME=text
  31.  The name of the object. The result will be sent as 'name=value'
  32.  
  33.  TYPE=text
  34.  Defines the object type. Can be either TEXT (Text field), INT
  35.  (Number field), PASSWORD (Password field, characters is viewed
  36.  as bullets, ‚Ä¢), RADIO (radio button, only one can be checked),
  37.  CHECKBOX (Hilited or not), HIDDEN (A hidden textfield), FILE
  38.  (A special button which will ask the user for a file to upload.
  39.  Requires special cgi-scripts and servers.), SUBMIT (a button
  40.  used to send the form), IMAGE (Imagemap as a submit button)
  41.  and RESET (a button which reset all objects to its default
  42.  values). An object of the type SUBMIT or IMAGE must be
  43.  included to make the form to work.
  44.  
  45.  VALUE=text
  46.  Is the default value of the object, for example "Hello" in
  47.  a text field. If TYPE is RADIO or CHECK, VALUE is returned
  48.  only if the radiobutton or checkbox is checked. May be used
  49.  in all objects.
  50.  
  51.  SIZE=n
  52.  Defines the width of the object in pixels. Not needed in
  53.  all objects, for example not in buttons.
  54.  
  55.  MAXLENGTH=n
  56.  Defines the max length of the value, for example 3 (characters).
  57.  Needed in almost the same objects as the SIZE parameter.
  58.  
  59.  CHECKED
  60.  Set the hilite of a radiobutton or checkbox to true as default.
  61.  Not used in other objects.
  62.  
  63.  SRC=url
  64.  For use with TYPE=IMAGE. Same as for <IMG> pictures.
  65.  
  66.  ALIGN=right|center|left
  67.  Optional parameter for use with TYPE=IMAGE. Same as for <IMG>.
  68.  
  69.  Other form objects    
  70.  
  71.  <SELECT NAME=text [SIZE=n] [MULTIPLE]>
  72.  Start tag for a popup button or list. Must end with </SELECT>.
  73.  NAME is the object name and SIZE the number of visible rows.
  74.  If the optional MULTIPLE parameter is used, the object will be
  75.  a list. If not, it will show up as a popup button. Multiple
  76.  items can be hilited in a list by holding the command and
  77.  control keys. Use the following tag within the <SELECT> tag:
  78.  
  79.  <OPTION [VALUE=text] [SELECTED]>text2
  80.  Defines a new popupmenu option. Don't end with </OPTION>!
  81.  Value is the text to be sent, usually "text2".
  82.  
  83.  <TEXTAREA NAME=text [COLS=n] [ROWS=n] [WRAP=virtual|physical>
  84.  Insert a scrolling text field. COLS is the number or columns
  85.  (horizontal characters). WRAP is a Netscape tag and sets the
  86.  text aling of the textfield. Must end with </TEXTAREA>. The
  87.  text between the start and end tag is the default text in the
  88.  box, for example <TEXTAREA>Hello</TEXTAREA>.
  89.